#ifndef _SCENE_PAGE_H_
#define _SCENE_PAGE_H_

#include "sys_port.h"
#include "dev_off.h"
#include "dev_off_line.h"
#include "root.h"

typedef struct 
{
    int   homeid;
    int   sceneId;
}scene_req_info_t;

typedef struct 
{
    int        loading_flag;

    lv_obj_t * img_bg;

    lv_obj_t * img_setting;
    lv_obj_t * label_info;

    lv_obj_t * obj_scene_collect;

    lv_obj_t * obj_scene;
    lv_obj_t * img_scene;
    lv_obj_t * img_btn;
    lv_obj_t * label_scene;
    
    lv_obj_t * no_scene_img;
    lv_obj_t * no_scene_label;

    lv_timer_t* time;
}ui_scene_widget_t;

void ui_init_scene_page_src(lv_obj_t *superview);

static void on_page_scene_view_did_load(page_base_t* self);

page_vtable_t* lv_page_scene_create(void);

void ui_scene_page_common(lv_obj_t *superview);

void ui_scene_page_setting(lv_obj_t *superview);

void ui_scene_page_scene(lv_obj_t *superview);

void ui_scene_page_add_scene(lv_obj_t * superview, char * img_path, char * info,uint8_t num);

page_method_t* lv_scene_page_method(void);
#endif // _SCENE_PAGE_H_
